@extends('layouts.app')

@section('body')
    @component('components.alert')@endcomponent
    <form action="{{route('auth.reset-password.sms-reset')}}" method="post">
        {{csrf_field()}}
        手机号:<input type="text" name="mobile" value="{{old('mobile')}}">
        @if($errors->has('mobile'))
            {{$errors->first('mobile')}}
        @endif
        <br/>
        验证码:<input type="text" name="sms_code" value="{{old('sms_code')}}">
        <a href="{{route('send-sms-code','17633190977')}}" target="_blank">发送验证码</a>
        @if($errors->has('sms_code'))
            {{$errors->first('sms_code')}}
        @endif
        <br/>
        新密码:<input type="password" name="password">
        @if($errors->has('password'))
            {{$errors->first('password')}}
        @endif
        <br/>
        确认密码:<input type="password" name="password_confirmation">
        @if($errors->has('password_confirmation'))
            {{$errors->first('password_confirmation')}}
        @endif
        <br/>
        <button type="submit">提交</button>
    </form>
@endsection
